package com.hospital.hospitalrelay.web;


import com.hospital.hospitalrelay.entity.Advice;
import com.hospital.hospitalrelay.service.IAdviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 医嘱表 前端控制器
 * </p>
 *
 * @author 闫腾腾
 * @since 2020-10-21
 */
@RestController
@RequestMapping("/advice")
public class AdviceController {

    @Autowired
    private IAdviceService iAdviceService;

    //医嘱列表
    @RequestMapping("advicelist")
    public List<Advice> advicelist(){
        return iAdviceService.list();
    }

}
